docs: Work around escaping bugs
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jul 2020 20:14:33 +0000 (16:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jul 2020 22:24:18 +0000 (18:24 -0400)
This is truly a russian doll of documentation formats:
a string containing <> inside an xml fragment in an |[ ]|
gtk-doc example in markdown in a doc comment.

Sadly, something gets escaping wrong, so the <> end up
literally in the docbook and mess up the last step of
our document formatting, even after turning them into
entities.

Work around this with an extra level of entities that
really shouldn't be necessary.

gtk/gtkshortcutcontroller.c

index 1d4806b198cbe11b317e469ba76a816388a48d4c..e427ae5ed8c896a5f731b34c371d981b597906fb 100644 (file)
@@ -50,7 +50,7 @@
  *         <property name='scope'>managed</property>
  *         <child>
  *           <object class='GtkShortcut'>
- *             <property name='trigger'><![CDATA[<Control>k]]></property>
+ *             <property name='trigger'>&amp;lt;Control&amp;gt;k</property>
  *             <property name='action'>activate</property>
  *           </object>
  *         </child>